#include<iostream>
#include<algorithm>
using namespace std;
int n,a[100001],ans,l,r;
int main(){
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin>>n;
	for(int i=1;i<=n;i++)cin>>a[i];
	random_shuffle(a+1,a+n+1);
	sort(a+1,a+n+1);
	ans=n;
	for(int l=1,r=2;r<=n;l++){
        while(a[r]<=a[l]&&r<=n)r++;
        if(r>n)break;
        ans--,r++;
	}
	cout<<ans;
	return 0;
}
